<include file="public@header"/>
</head>
<body>
<div class="wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a>供应商详情</a></li>
    </ul>
    <form method="post" class="form-horizontal js-ajax-form margin-top-20" action="{:url('supplier/doedit')}"
          enctype="multipart/form-data">


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>公司全称
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="fullName" value="{$res['fullName']}">
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>公司简称
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="attrName" value="{$res['attrName']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>姓名
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="name" value="{$res['name']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>地址
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="address" value="{$res['address']}">
            </div>
        </div>

        <div class="form-group">

            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>联系方式
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="mobile" value="{$res['mobile']}">
            </div>
        </div>



        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>另外联系人
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="text" class="form-control" name="otherName" value="{$res['otherName']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>另外手机号
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="otherMobile" value="{$res['otherMobile']}">
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>银行卡号
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="bankNum" value="{$res['bankNum']}">
            </div>
        </div>

        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                <span class="form-required">*</span>税号
            </label>
            <div class="col-md-6 col-sm-10">
                <input type="number" class="form-control" name="dutyNum" value="{$res['dutyNum']}">
            </div>
        </div>


        <div class="form-group">
            <label for="js-smtpsecure" class="col-sm-2 control-label">
                营业执照上传
            </label>
            <div class="col-md-6 col-sm-10">

                <foreach name="res['img']" item="v">

                    <?php
                            if($v != 'http://'. $_SERVER['SERVER_NAME']){
                        ?>
                    <img src="{$v}" alt="" width="350" height="250" style="margin-bottom: 10px">
                    <?php
                    }
                    ?>
                </foreach>

                <input type="file" name="img[]" class="form-control" multiple>
            </div>
        </div>

        <input type="hidden" name="id" value="{$res.id}">

        <div class="form-group">
            <div class="col-sm-offset-2 col-sm-10">
                <button type="submit" class="btn btn-primary js-ajax-submit">{:lang('SAVE')}</button>
                <a class="btn btn-default" href="javascript:history.back(-1);">{:lang('BACK')}</a>
            </div>
        </div>
    </form>
</div>
<script src="__STATIC__/js/admin.js"></script>
</body>
</html>